<template>
	<view class="transparent-box">
		<u-popup :show="popupShow" @close="popupShow = false" mode="center">
			<view class="flex-column popup-box">
				<view>
					<image src="/static/image/triage/success.png" mode="widthFix"></image>
				</view>
				<text v-for="(item,index) in list">{{item}}</text>
				<view class="btn-box" @click="btnClick">{{btnVal}} </view>
				<view v-show="linkVal" class="fs-26 link" @click="linkClick">{{linkVal}}</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				popupShow: false,
				list: [],
				btnVal: '我知道了',
				linkVal: ''
			}
		},
		methods: {
			getInfo(show, list, btnVal, linkVal) {
				this.list = list
				this.btnVal = btnVal
				this.linkVal = linkVal
				this.popupShow = show
			},
			btnClick() {
				this.popupShow = false
				this.$emit('btnClick')
			},
			linkClick() {
				this.popupShow = false
				this.$emit('linkClick')
			}
		}
	}
</script>
<style lang="scss" scoped>
	.popup-box {
		align-items: center;
		padding: 50rpx 0;
		width: 500rpx;
		height: 560rpx;
		background: linear-gradient(180deg, #F4FCFE 0%, #FFFFFF 100%);
		border-radius: 40rpx;
		overflow: hidden;

		image {
			width: 200rpx;
			margin-bottom: 50rpx;
		}

		text {
			font-size: 26rpx;
			color: #000;
		}

		.btn-box {
			width: 240rpx;
			height: 80rpx;
			margin-top: 60rpx;
			background: #43ABC4;
			border-radius: 14rpx;
			text-align: center;
			color: #fff;
			font-size: 28rpx;
			line-height: 80rpx;
		}

		.link {
			margin-top: 20rpx;
			color: #43ABC4;
		}
	}
</style>